import {getToken} from "@/util";
import axiosInstance from "@/api";
import {response} from "@/hooks";

export async function useGetMember(id: any) {
    const token = getToken()
    return await axiosInstance.get<any, response>(`/v1/group/member/${id}`, {
        headers: {"x-token": token}
    })
}